import { Body, Controller, Get, Post } from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
    constructor(private readonly appService: AppService) { }

    @Get()
    getHello(): string {
        return this.appService.getHello();
    }

    @Post('test/postData')
    postData(@Body() data: any) {
        return this.appService.postData(data);
    }

    @Post('test/loadConfig')
    loadConfig(@Body() data: any) {
        return this.appService.loadConfig(data);
    }
}
